import axios from "axios";
import * as API from "./API";

// axios.defaults.withCredentials = true;
export const queryBoatas = (params) => {
  return axios.post(API.queryBoatas, params);
};
export const getBaseData = (params) => {
  return axios.get(API.getBaseData, params);
};
export const queryBoatasList = (params) => {
  return axios.get(API.queryBoatasList, params);
};

export const queryTrack = (params) => {
  return axios.get(API.queryTrack, params);
};
export const getmodelFlight = (params) => {
  return axios.post(API.getmodelFlight, params);
};

/** 获取参数树的信息 */
export const treeselect = (params) => {
  return axios.get(API.treeselect, params);
};
/** 获取地图数据点 */
export const queryGisData = (params) => {
  return axios.post(API.queryGisData, params);
};
/** 查看分段轨迹 */
export const querySegmentedTracks = (params) => {
  return axios.post(API.querySegmentedTracks, params);
};
/** 获取编队列表 */
export const queryFormation = (params) => {
  return axios.post(API.queryFormation, params);
};
/** 获取编队轨迹 */
export const queryFormationTracks = (params) => {
  return axios.post(API.queryFormationTracks, params);
};
/** 预测轨迹 */
export const modelPredict = (params) => {
  return axios.post(API.modelPredict, params);
};
/** 轨迹相似性 */
export const getSimilarTrace = (params) => {
  return axios.post(API.getSimilarTrace, params);
};
/** 查询航行日志数据 */
export const queryLogbookTimeline = (params) => {
  return axios.post(API.queryLogbookTimeline, params);
};
/** 获取船的航行日志数据 */
export const queryLogbookTimelineByShipTrackUuid = (params) => {
  return axios.post(API.queryLogbookTimelineByShipTrackUuid, params);
};
// 区域轨迹预测
export const eventAllPredict = (params) => {
  return axios.post(API.eventAllPredict, params);
};
// 显示所有区域
export const areaShow = () => {
  return axios.post(API.areaShow);
};
// 添加区域
export const areaAdd_area = (params) => {
  return axios.post(API.areaAdd_area, params);
};
// 删除区域
export const areaDel_area = (params) => {
  return axios.post(API.areaDel_area, params);
};
